package com.zsc.wxm.ysh.anjo.house.feign;

import com.zsc.wxm.ysh.anjo.house.feign.fallback.MemberServiceImpl;
import com.zsc.wxm.ysh.anjo.result.Result;
import com.zsc.wxm.ysh.anjo.service.base.model.member.qo.MemberQuery;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 描述：
 *
 * @author playmaker
 * @since 2021/2/20 23:06
 */
@FeignClient(value = "anjo-member-service", fallback = MemberServiceImpl.class)
public interface MemberService {

    /**
     * 根据查询条件查询
     *
     * @param memberQuery
     * @return
     */
    @PostMapping("/user/member/get-one")
    Result getOne(@RequestBody MemberQuery memberQuery);

    /**
     * 通过查询条件查询用户列表
     *
     * @param memberQuery
     * @return
     */
    @PostMapping("/user/member/get-member-list")
    Result getMemberList(@RequestBody MemberQuery memberQuery);

    @PostMapping("/user/member/get-list-by-ids")
    Result getListByIds(@RequestBody List<Long> ids);
}
